package threads;

/**
 * @author apple
 * @Classname ThreadCreateTest
 * @Description 继承Thread创建线程
 * @Date 2020/4/19 15:59
 */
public class ThreadCreateTest{
    public static void main(String[] args) {
        new MyThread().start();
    }
}
/**内部类**/
class MyThread extends Thread{
    @Override
    public void run(){
        System.out.println("MyThread name="+Thread.currentThread().getName());
    }
}